package com.neusoft.elm.controller;

import com.neusoft.elm.po.OrderDetailet;
import com.neusoft.elm.service.OrderDetailetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/OrderDetailetController")
public class OrderDetailetController {
    @Autowired
    private OrderDetailetService orderDetailetService;

@RequestMapping("/listOrderDetailetByOrderId")
    public Object listOrderDetailetByOrderId(Integer orderId) throws Exception{
    List<OrderDetailet> list = orderDetailetService.listOrderDetailetByOrderId(orderId);
    return list;
}



}
